|
tester2 2.2.2
|
API for configuring and manipulating Tester 2 Click driver. More...
Topics | |
| Tester 2 MikroBUS Map | |
| MikroBUS pin mapping of Tester 2 Click driver. | |
Functions | |
| void | tester2_cfg_setup (tester2_cfg_t *cfg) |
| Tester 2 configuration object setup function. | |
| err_t | tester2_init (tester2_t *ctx, tester2_cfg_t *cfg) |
| Tester 2 initialization function. | |
| void | tester2_toggle_all (tester2_t *ctx, uint16_t num_toggles, uint16_t toggle_delay_ms) |
| Tester 2 toggle all function. | |
| void | tester2_toggle_seq (tester2_t *ctx, uint16_t toggle_delay_ms) |
| Tester 2 toggle seq function. | |
API for configuring and manipulating Tester 2 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
| void tester2_cfg_setup | ( | tester2_cfg_t * | cfg | ) |
Tester 2 configuration object setup function.
This function initializes Click configuration structure to initial values.
| [out] | cfg | : Click configuration structure. See tester2_cfg_t object definition for detailed explanation. |
| err_t tester2_init | ( | tester2_t * | ctx, |
| tester2_cfg_t * | cfg ) |
Tester 2 initialization function.
This function initializes all necessary pins and peripherals used for this Click board.
| [out] | ctx | : Click context object. See tester2_t object definition for detailed explanation. |
| [in] | cfg | : Click configuration structure. See tester2_cfg_t object definition for detailed explanation. |
0 - Success, -1 - Error. See #err_t definition for detailed explanation. | void tester2_toggle_all | ( | tester2_t * | ctx, |
| uint16_t | num_toggles, | ||
| uint16_t | toggle_delay_ms ) |
Tester 2 toggle all function.
This function toggles all mikroBUS pins together a desired number of times with the selected delay between each toggle.
| [in] | ctx | : Click context object. See tester2_t object definition for detailed explanation. |
| [in] | num_toggles | : Number of toggles. |
| [in] | toggle_delay_ms | : Delay in milliseconds between each toggle. |
| void tester2_toggle_seq | ( | tester2_t * | ctx, |
| uint16_t | toggle_delay_ms ) |
Tester 2 toggle seq function.
This function toggles all mikroBUS pins one by one with the selected delay between each toggle.
| [in] | ctx | : Click context object. See tester2_t object definition for detailed explanation. |
| [in] | toggle_delay_ms | : Delay in milliseconds between each toggle. |